package demoxsgl_300.com.gouwu1500.zhi;

import android.app.Activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

import demoxsgl_300.com.gouwu1500.R;
import demoxsgl_300.com.gouwu1500.http.API;
import demoxsgl_300.com.gouwu1500.http.Okhttp;

public class TestActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);





//        API.inquisition("感冒",  new Okhttp.Objectcallback() {
//            @Override
//            public void onsuccess(String st) {
//                Log.e("111", "xx:" + st);
//                if (!st.equals("注册成功")) {
//                    Toast.makeText(TestActivity.this, "注册失败," + st, Toast.LENGTH_SHORT).show();
//                } else {
//                    Toast.makeText(TestActivity.this, "注册成功!", Toast.LENGTH_SHORT).show();
//                }
//
//
//            }
//
//            @Override
//            public void onFalia(int code, String errst) {
//                Log.e("111", "xx:" + errst);
//                Toast.makeText(TestActivity.this, "网络错误:" + errst, Toast.LENGTH_SHORT).show();
//            }
//        });
    }
}
